package com.ihr360.payroll.controller.reference;


import com.ihr360.maven.plugin.ModuleCodeStore;
import com.ihr360.maven.plugin.annotation.ModuleDefinition;
import com.ihr360.payroll.model.dto.reference.ReferenceApplication;
import com.ihr360.payroll.service.reference.ReferenceApplicationService;
import com.ihr360.rest.service.SimpleRestService;
import com.ihr360.rest.webmvc.AbstractRestSimpleWithLongIdController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author tomtao
 */
@RestController
@RequestMapping("/referenceApplications")
@ModuleDefinition(mainModuleCode = ModuleCodeStore.Module.SALARY_CODE_ADMIN,
        mainModuleName = ModuleCodeStore.Module.SALARY_NAME_ADMIN,
        subModuleCode = ModuleCodeStore.Module.SalaryAdmin.REFERENCE_APPLICATION_SETTING_CODE,
        subModuleName = ModuleCodeStore.Module.SalaryAdmin.REFERENCE_APPLICATION_SETTING_NAME,
        hasExtendsAbstractRestController = true)
public class ReferenceApplicationController extends AbstractRestSimpleWithLongIdController<ReferenceApplication> {

    @Autowired
    private ReferenceApplicationService referenceApplicationService;

    @Override
    public SimpleRestService<ReferenceApplication, Long> getSimpleRestService() {
        return referenceApplicationService;
    }
}
